//封装登录及退出模块
import request from "@/utils/request";

//登录方法
export function login(data) {
  return request({
    url: "/sys/login",
    method: "post",
    data: data,
  });
}

//获取登录用户信息
export function getUserInfo() {
  return request({
    url: "sys/profile",
    method: "get",
  });
}
